package com.hgw.Demo01_ChainOfResponsibilityPattern.Exercises16_8_4;

/**
 * Data time:2021/12/16 15:50
 * StudentID:2019112118
 * Author:hgw
 * Description: 指挥官审批者类，充当抽象处理者
 */
public abstract class Officer {
    // 维持对下家的使用
    protected Officer successor;
    protected String name;

    public Officer(String name) {
        this.name = name;
    }

    public void setSuccessor(Officer successor) {
        this.successor = successor;
    }

    public abstract void processRequest(Mission mission);

}
